package com.hanke;


import com.hanke.mothed.Mothed;
import com.hanke.mothed.MothedInfo;

//可扩展性可由接口 去定义
//高可用性 比较小没有做集群

public class Zhifu {
    public static void main(String[] args) {
       /* double valus=0;
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        try {
            //double valus = Fruits.fruits(5, 4);
            if (System.currentTimeMillis() > dateFormat.parse(start).getTime() && System.currentTimeMillis() < dateFormat.parse(start).getTime()) {
                valus = Fruits.fruits(5, 4, 7, 3);

            } else {
                valus = Fruits.fruits(5, 4, 7, 3);
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
        System.out.println(valus);

        */
        Mothed mothed = new MothedInfo();
        //顾客A
        double vA = mothed.money1(5, 4, 0);
        System.out.println(vA);
        //顾客B
        double vB = mothed.money1(5, 4, 2);
        System.out.println(vB);
        //顾客C
        double vC = mothed.money2(5, 4, 2);
        System.out.println(vC);
        //顾客D
        double vD = mothed.money3(5, 4, 2);
        System.out.println(vD);
    }
}
